# Enabling the uart
echo "Enable the uart...\n"
sudo echo "enable_uart=1" >> /boot/config.txt
sudo ls -l /dev/serial*


# Close the serial console
echo "Disable the serial console...\n"
sudo systemctl stop serial-getty@ttyS0.service
sudo systemctl disable serial-getty@ttyS0.service
sudo sed -i 's/console=serial0,115200/ /g' /boot/cmdline.txt

# Disable the /dev/ttyAMA0
echo "Overlay the AMA0 and S0...\n"
sudo echo "dtoverlay=pi3-miniuart-bt" >> /boot/config.txt
sudo ls -l /dev/serial*


# Install vim
echo "Install vim"
sudo apt-get install vim

# Install qt
echo "Install qt4"
sudo apt-get install qt4-dev-tools

# Reboot the syste
echo "Restart system...\n"
sudo reboot
